package common

type LogsCode int

const (
	SystemError                 LogsCode = 1  // 系统错误
	MysqlError                  LogsCode = 2  // mysql链接错误
	RealTimeTaskError           LogsCode = 4  // 处理实时任务错误
	CopyAccountServiceError     LogsCode = 5  // 腾讯复制户
	MysqlDKError                LogsCode = 6  // 垫款数据
	SendMessageError            LogsCode = 7  // 给企微发送消息错误
	OeBindSaleError             LogsCode = 8  // 巨量绑定销售账户错误
	OeBindBatchError            LogsCode = 9  // 巨量批量绑定销售账户错误
	OeAdCopyAccountError        LogsCode = 10 // 巨量AD复制户错误
	OeAdOpenAccountError        LogsCode = 11 // 巨量AD开户错误
	OeAdSearchWithoutError      LogsCode = 12 // 巨量AD直客查询错误
	OeLocalCopyAccountError     LogsCode = 13 // 巨量本地推复制户错误
	OeLocalOpenAccountError     LogsCode = 14 // 巨量本地推开户错误
	OeLocalSearchWithoutError   LogsCode = 15 // 巨量本地推直客查询错误
	OeQcCopyAccountError        LogsCode = 16 // 巨量千川复制户错误
	OeQcOpenAccountError        LogsCode = 17 // 巨量千川开户错误
	OeQcSearchWithoutError      LogsCode = 18 // 巨量千川直客查询错误
	DeftCopyAccountError        LogsCode = 19 // 快手复制户错误
	DeftSendSmsError            LogsCode = 20 // 快手发送短信错误
	TencentSyncCopyAccountError LogsCode = 21 // 腾讯复制户同步到广告主表
	KsSyncCopyAccountError      LogsCode = 22 // 快手复制户同步到广告主表
	OeAdSyncCopyAccountError    LogsCode = 23 // 巨量AD复制户同步到广告主表
	OeLocalSyncCopyAccountError LogsCode = 24 // 巨量本地推复制户同步到广告主表
	OeQcSyncCopyAccountError    LogsCode = 25 // 巨量千川复制户同步到广告主表
	XhsSyncUpdateError          LogsCode = 26 // 小红书修改广告主表 is_robot 字段
	XhsBindSaleError            LogsCode = 27 // 小红书绑定销售
)

var (
	LogsErrorMap = map[LogsCode]string{
		SystemError:                 "system",
		MysqlError:                  "mysql",
		RealTimeTaskError:           "real_time_task",
		CopyAccountServiceError:     "copy_account_service",
		MysqlDKError:                "mysql_dk",
		SendMessageError:            "send_msg",
		OeBindSaleError:             "oe_bind_sale",
		OeBindBatchError:            "oe_bind_batch",
		OeAdCopyAccountError:        "oe_ad_copy_account",
		OeAdOpenAccountError:        "oe_ad_open_account",
		OeAdSearchWithoutError:      "oe_ad_search_without",
		OeLocalCopyAccountError:     "oe_local_copy_account",
		OeLocalOpenAccountError:     "oe_local_open_account",
		OeLocalSearchWithoutError:   "oe_local_search_without",
		OeQcCopyAccountError:        "oe_qc_copy_account",
		OeQcOpenAccountError:        "oe_qc_open_account",
		OeQcSearchWithoutError:      "oe_qc_search_without",
		DeftCopyAccountError:        "ks_copy_account",
		DeftSendSmsError:            "ks_send_sms",
		TencentSyncCopyAccountError: "tencent_sync_copy_account",
		KsSyncCopyAccountError:      "ks_sync_copy_account",
		OeAdSyncCopyAccountError:    "oead_sync_copy_account",
		OeLocalSyncCopyAccountError: "oelocal_sync_copy_account",
		OeQcSyncCopyAccountError:    "oeqc_sync_copy_account",
		XhsSyncUpdateError:          "xhs_update",
		XhsBindSaleError:            "xhs_bind_sale",
	}
)
